package com.zly.entity.parameter;

import com.fasterxml.jackson.databind.JsonNode;

public class DirectValueParameter extends DynamicJsonParameter {

    //该参数的值
    private JsonNode valueNode;

    //构造
    public DirectValueParameter(String parameterName, JsonNode valueNode) {
        super(parameterName);
        this.valueNode = valueNode;
    }

    public void setValueNode(JsonNode valueNode) { this.valueNode = valueNode; }
    public JsonNode getValueNode() {
        return valueNode;
    }

    @Override
    public boolean isOriginalStringType() {
        return valueNode.isTextual();
    }

}
